<?php
$goods_ids = empty($_GET['goods_ids']) ? array() : $_GET['goods_ids'];
	
// 浏览历史
$oGoods = new Goods();
$list = array();
foreach ($goods_ids as $goodsid) {
	$goodsinfo = $oGoods->get_row($goodsid);
	if(empty($goodsinfo['filename'])){
		$goodsinfo['url'] = PUB_DIR.'goods/'.time_to_path($goodsinfo['addtime']).'/'.$goodsinfo['id'].'.html';
	}else{
		$goodsinfo['url'] = PUB_DIR.'goods/v/'.$goodsinfo['filename'].'.html';
	}
	$list[] = $goodsinfo;
}
$vars['goods_view_history_list'] = $list;
?>